package de.g18.it0a.jlaser.exception;


public class JLFParseException extends Exception {

    private static final long serialVersionUID = 1L;

    private final int line;
    private final int column;
    private final String lineContent;


    public JLFParseException(int aLine, int aColumn, String aLineContent) {
        this(aLine, aColumn, aLineContent, null);
    }

    public JLFParseException(int aLine, int aColumn, String aLineContent, Throwable aCause) {
        super("Unexpected token near line " + aLine + " column " + aColumn + ". Line content: " + aLineContent);
        line = aLine;
        column = aColumn;
        lineContent = aLineContent;
    }

    public int getLine() {
        return line;
    }

    public int getColumn() {
        return column;
    }

    public String getLineContent() {
        return lineContent;
    }
}
